<div class="search-box">
	<form class="search_form layui-form" lay-filter="invoice_search_form">
		<div class="layui-inline">
			<label class="layui-form-label">发票抬头</label>
			<div class="layui-input-inline">
				<input type="text" name="invoice_title" autocomplete="off" class="layui-input">
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label">税号</label>
			<div class="layui-input-inline">
				<input type="text" name="invoice_duty" autocomplete="off" class="layui-input">
			</div>
		</div>
		
		<div class="layui-inline">
			<label class="layui-form-label">订单号</label>
			<div class="layui-input-inline">
				<input type="text" name="order_no" autocomplete="off" placeholder="完整订单号" class="layui-input">
			</div>
		</div>

		<div class="layui-inline">
			<label class="layui-form-label">供应商</label>
			<div class="layui-input-inline">
				<input type="text" name="susername" autocomplete="off" class="layui-input">
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label">章</label>
			<div class="layui-input-inline search-radio-box">
				<input type="radio" name="supplier_picture" value="" title="全部" checked>
				<input type="radio" name="supplier_picture" value="1" title="已传">
				<input type="radio" name="supplier_picture" value="2" title="未传">
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label">开票</label>
			<div class="layui-input-inline search-radio-box">
				<input type="radio" name="state" value="" title="全部" checked>
				<input type="radio" name="state" value="1" title="未开票">
				<input type="radio" name="state" value="2" title="已开票">
				<input type="radio" name="state" value="3" title="已申请">
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label">供货商开票</label>
			<div class="layui-input-inline search-radio-box">
				<input type="radio" name="gys_state" value="" title="全部" checked>
				<input type="radio" name="gys_state" value="1" title="未开票">
				<input type="radio" name="gys_state" value="2" title="已开票">
			</div>
		</div>
		<div class="pack-up"></div>
	</form>
</div>
<table class="layui-hide" id="invoice_list" lay-filter="invoice_list"></table>

<script>
	
	var invoice_list_url = "{:url('Invoice/ajaxList')}",
		invoice_detail_url = "{:url('Invoice/detail')}",
		invoice_view_url = "{:url('Invoice/views')}",
		invoice_find_url = "{:url('Invoice/ajaxFind')}",
		invoice_verify = "{:url('Invoice/verify')}",
		invoice_save_invoice_url = "{:url('Invoice/saveInvoice')}",
		invoice_ajax_delete_url = "{:url('Invoice/ajaxDelete')}",
		invoice_cols = {$cols},
		excel_sale_invoice_url = "{:url('Invoice/excelSaleInvoice')}",
		excel_gys_invoice_url = "{:url('Invoice/excelGysInvoice')}",
		send_invoice_sms_url = "{:url('invoice/sendSms')}",
		shoukuanfapiao_uri = "{:url('invoice/shoukuanfapiao')}",
		member_id = "{$member_info.member_id}";
</script>
<script src="/static/js/invoice/index.js" type="text/javascript" charset="utf-8"></script>
<script type="text/html" id="invoiceToolbar">
	<div class="layui-btn-container">
	<a type="button" data-url="{:url('Invoice/sendsms')}" data-title="发送收款短信" class="layui-btn layui-btn-normal layui-btn-sm" lay-event="sendSMS"><i class="layui-icon layui-icon-cellphone-fine"></i>发送收款短信</a>
	<a type="button" data-url="{:url('Invoice/daoru')}" data-title="导入收款单" class="layui-btn layui-btn-normal layui-btn-sm" lay-event="applyInvoice"><i class="layui-icon layui-icon-tabs"></i>导入收款单</a>
	<a type="button" data-url="{:url('Invoice/excelSaleInvoice')}" data-title="销售发票明细" class="layui-btn layui-btn-normal layui-btn-sm" lay-event="saleInvoice"><i class="layui-icon layui-icon-download-circle"></i>销售发票明细</a>
	<a type="button" data-url="{:url('Invoice/excelGysInvoice')}" data-title="采购发票明细" class="layui-btn layui-btn-normal layui-btn-sm" lay-event="gysInvoice"><i class="layui-icon layui-icon-download-circle"></i>采购发票明细</a>
	<a type="button" data-url="{:url('Invoice/sendsms')}" data-title="发送催票短信" class="layui-btn layui-btn-normal layui-btn-sm" lay-event="sendSMScp"><i class="layui-icon layui-icon-cellphone-fine"></i>发送催票短信</a>
	<a type="button" data-title="导出合同" class="layui-btn layui-btn-normal layui-btn-sm qingkuanfapiaos"><i class="layui-icon layui-icon-tabs"></i>导出合同</a>
	</div>
</script>

<script type="text/html" id="supplier_pictureTpl">
	{{# if(d.supplier_picture == null){}}
	<div class="layui-anim circle layui-bg-red" data-title="未传">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# } else {}}
	<div class="layui-anim circle layui-bg-green" data-title="已传">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# }}}
</script>

<script type="text/html" id="stateTpl">
	{{# if(d.state == 1){}}
	<div class="layui-anim circle layui-bg-red" data-title="未开票">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# }else if(d.state == 3) { }}
	<div class="layui-anim circle layui-bg-cyan" data-title="已被驳回">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# } else {}}
	<div class="layui-anim circle layui-bg-green" data-title="已开票">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# }}}
</script>
<script type="text/html" id="gys_stateTpl">
	{{# if(d.gys_state == 1){}}
	<div class="layui-anim circle layui-bg-red" data-title="未开票">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# }else if(d.gys_state == 2) { }}
	<div class="layui-anim circle layui-bg-green" data-title="已开票">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# } else {}}
	<div class="layui-anim circle layui-bg-red" data-title="未开票">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# }}}
</script>
<script type="text/html" id="order_shoukuanTpl">
	{{# if(d.order_shoukuan == 1){}}
	<div class="layui-anim circle layui-bg-red" data-title="未收款">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# }else if(d.order_shoukuan == 2) { }}
	<div class="layui-anim circle layui-bg-green" data-title="全部收款">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# }else if(d.order_shoukuan == 3) { }}
	<div class="layui-anim circle layui-bg-cyan" data-title="部分收款">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# }else if(d.order_shoukuan == 4) { }}
	<div class="layui-anim circle layui-bg-blue" data-title="质保金收款">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# } else {}}
	<div class="layui-anim circle layui-bg-red" data-title="未收款">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# }}}
</script>
<script type="text/html" id="order_fukuanTpl">
	{{# if(d.order_fukuan == 1){}}
	<div class="layui-anim circle layui-bg-red" data-title="未付款">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# }else if(d.order_fukuan == 2) { }}
	<div class="layui-anim circle layui-bg-green" data-title="全部付款">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# }else if(d.order_fukuan == 3) { }}
	<div class="layui-anim circle layui-bg-cyan" data-title="部分付款">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# }else if(d.order_fukuan == 4) { }}
	<div class="layui-anim circle layui-bg-blue" data-title="质保金付款">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# } else {}}
	<div class="layui-anim circle layui-bg-red" data-title="未付款">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# }}}
</script>
<script type="text/html" id="builder_typeTpl">
	{{# if(d.builder_type == 1){}}
	<div class="layui-anim circle layui-bg-red" data-title="纸质发票">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# } else {}}
	<div class="layui-anim circle layui-bg-blue" data-title="电子发票">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# }}}
</script>
<script type="text/html" id="draw_stateTpl">
	{{# if(d.draw_state == 1){}}
	<div class="layui-anim circle layui-bg-blue" data-title="已领取">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# } else {}}
	<div class="layui-anim circle layui-bg-red" data-title="未领取">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# }}}
</script>
<script type="text/html" id="post_stateTpl">
	{{# if(d.post_state == 1){}}
	<div class="layui-anim circle layui-bg-blue" data-title="已配送">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# } else {}}
	<div class="layui-anim circle layui-bg-red" data-title="未配送">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# }}}
</script>
<script type="text/html" id="receive_stateTpl">
	{{# if(d.receive_state == 1){}}
	<div class="layui-anim circle layui-bg-blue" data-title="已收货">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# } else {}}
	<div class="layui-anim circle layui-bg-red" data-title="未收货">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# }}}
</script>

